package com.sike.netty.im.client.handler;

import cn.hutool.core.date.DateUtil;
import com.sike.netty.im.common.command.ExitGroupResponseCommand;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * 退出群聊响应 handler
 *
 * @author chenssy
 * @date 2023/09/22
 */
public class ExitGroupResponseHandler extends SimpleChannelInboundHandler<ExitGroupResponseCommand> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, ExitGroupResponseCommand msg) throws Exception {
        System.out.println("[" + DateUtil.now() + "]：系统 >>> 退出群聊["+msg.getGroupId()+" - " + msg.getGroupName() + "]成功");
    }
}
